﻿using Medianamik.UI.Web.MVP.View;

namespace Medianamik.UI.Web.Shop
{
    public interface IAttributeListView : IModuleViewWithNodeTypePropertyGrid { }

    public partial class ShopAttributeList : ModuleViewWithNodeTypeNodeTypePropertyGrid<IAttributeListView>, IAttributeListView
    {
        public override System.Web.UI.WebControls.HyperLink AddButton
        {
            get
            {
                return lnkAddNode;
            }
        }

        public override string TypeSelectorUrl
        {
            get
            {
                return Pages.AttributeEdit;
            }
        }

        public override string ListingPageUrl
        {
            get { return Pages.AttributeList; }
        }

        public override string RootListingPageUrl
        {
            get { return Pages.AttributeTypeList; }
        }

        public override IMedianamikGrid Grid
        {
            get { return (IMedianamikGrid)AttributeGrid; }
        }
    }
}
